home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1699 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.4 KB  |  41 lines

  1. Newsgroups: comp.lang.ada,comp.lang.c++,comp.lang.c,comp.lang.modula3,comp.lang.modula2,comp.lang.eiffel
  2. Path: munta.cs.mu.OZ.AU!fjh
  3. From: fjh@munta.cs.mu.OZ.AU (Fergus Henderson)
  4. Subject: Re: type checking in C++ was Re: Hungarian notation
  5. Message-ID: <9601221.15716@mulga.cs.mu.OZ.AU>
  6. Sender: news@cs.mu.OZ.AU (CS-Usenet)
  7. Organization: Computer Science, University of Melbourne, Australia
  8. References: <4cf8hf$8fe@hopi.gate.net> <DKoBrn.CHs@falcon.daytonoh.attgis.com> <4d1j37$ge8@stc06.ctd.ornl.gov>
  9. Date: Fri, 12 Jan 1996 10:23:37 GMT
  10.  
  11. mbk@jt3ws1.etd.ornl.gov (Kennel) writes:
  12.  
  13. >Dick Menninger (Dick.Menninger@DaytonOH.ATTGIS.COM) wrote:
  14. >> The purpose of C++ in its design
  15. >> and evolution has been to hide implementation while
  16. >> providing genuinely heavy duty compile-time type checking.
  17. >
  18. >Is the goal actually achieved?  "heavy duty compile-time type-checking?"
  19.  
  20. No; the need for backwards compatibility means that it will never be
  21. fully achieved.
  22.  
  23. >At one point something like this could be a problem.  It it still?
  24. >
  25. >function(Type *p) {
  26. >
  27. >// One of this may silently crash or do bad things.  Both typecheck. 
  28. >
  29. >//    delete p;
  30. >//    delete [] p; 
  31. >
  32. >}
  33.  
  34. Yes, that is still a problem.  However, it is less of a problem than
  35. it used to be, because there is now a standard `vector<T>' class
  36. which can be used instead of C's builtin arrays.
  37.  
  38. --
  39. Fergus Henderson                 WWW: http://www.cs.mu.oz.au/~fjh
  40. fjh@cs.mu.oz.au                  PGP: finger fjh@128.250.37.3
  41.